/**
 * 接口管理
 * 商户中心>门店管理>门店列表
 */
import request from '@/utils/request';

// 获取行业分类列表
export const getStoreCatList = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStoreChildCat/storeCatList', {
    method: 'POST',
    data: params
  })
}
// 获取分类列表
export const getStoreTypeList = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStoreType/getStoreTypeList', {
    method: 'POST',
    data: params
  })
}
// 获取门店列表
export const getStoreList = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStoreInfo/getStorePageByMerchantsId', {
    method: 'POST',
    data: params
  })
}
// 操控开关
export const handleSwitch = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStoreInfo/updateStoreStatus', {
    method: 'POST',
    data: params
  })
}
// 删除门店
export const deteleStore = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStoreInfo/deleteStoreInfo', {
    method: 'POST',
    data: params
  })
}
// 绑定分类
export const bindType = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStoreType/saveTypeStoreSort', {
    method: 'POST',
    data: params
  })
}
